<template>
  <router-view></router-view>
</template>

<script setup>
import { onMounted } from "vue";
import { useAppStore } from "@/stores/app";

const appStore = useAppStore();

onMounted(() => {
  appStore.initDarkMode(); // 确保暗黑模式被初始化
});
</script>

<style lang="less" scoped>
.page-wrapper {
  min-height: calc(
    100vh - 70px - 25px - 25px;
  ); /* 100vh - 顶部栏 - 主内容上下内边距 */
  position: relative;
}
</style>